package com.hdax.dm.controller;

import com.hdax.dm.beans.order.order;
import com.hdax.dm.service.confirmpayService;
import com.hdax.dm.utils.response.CommonResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/order/pay")
public class confirmpayController {

    @Autowired
    private confirmpayService confirmpayService;

    @PostMapping("confirmpay")
    public CommonResponse<order> confirmpay(@RequestBody Map<String,String> params){
        return confirmpayService.order(params);
    }
}
